package cn.wolfcode.shop.cloud.common;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class BusinessException extends RuntimeException {

    private CodeMsg codeMsg;
    public BusinessException(){

    }
    public BusinessException(CodeMsg codeMsg){
        super(codeMsg.getMsg());
        this.codeMsg = codeMsg;
    }
}
